package com.java2207.group1.mapper;

import com.java2207.group1.pojo.Equipment;
import com.java2207.group1.vo.equipment.BarVo;
import com.java2207.group1.vo.equipment.PieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EquipmentMapper {
//    @Select(" select * from nursinghome.t_equipment ")
    List<Equipment> selectByParams(Map<String, Object> params);

    int addEquipment(Equipment equipment);

    int deleteEquipment(int id);

    int updateEquipment(Equipment equipment);

    int batchEquipment(@Param("ids") String[] arr);

    List<BarVo> setBarData();

    List<PieVo> setPieData();
}
